﻿ IF EXISTS (SELECT * FROM sysobjects WHERE type = 'V' AND name = 'Certificate_View')
BEGIN
  DROP  View Certificate_View
END
GO
CREATE View Certificate_View 
AS
SELECT A.*,B.EnterpriseName,B.Addess FROM Certificate A 
JOIN Enterprises_View B ON A.EnterpriseID=B.EnterpriseID
GO